Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle situations where billing country is unset #378

Merged
merged 4 commits into from Mar 20, 2024

Conversation

mntzrr
Copy link
Contributor

@mntzrr mntzrr commented Mar 15, 2024

The following changes are more in line with the way WooCommerce behave.

  • in kp_get_klarna_country, proceed with fallback options if get_billing_country is empty. This should prevent 401 errors.
  • retrieve the currency directly from the WC_Order if available. This should improve compatibility with custom currency switchers.
  • use kp_get_klarna_country in callback.

Task: https://app.clickup.com/t/86940wrwz

@MichaelBengtsson MichaelBengtsson merged commit 051806e into develop Mar 20, 2024
0 of 3 checks passed
@MichaelBengtsson MichaelBengtsson deleted the develop-kp-get-country branch March 20, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants